package com.jyh.aop01.service;

import com.jyh.aop01.service.impl.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/11 15:47
 */
public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("spring01.xml");
        IUserSercice userSercice = app.getBean(IUserSercice.class);
        userSercice.save();

        OrderService orderService = app.getBean(OrderService.class);
        orderService.save();
    }
}
